<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String base = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>
	<div class="navbar navbar-fixed-top navbar-inverse gn_bg">
		<div class="row">
			<div class="navbar-inner">
				<div class="container">
					<span class="brand"  style="color:#FFF;font-size:22px;font-weight:bold;">MyCRM</span>
					<span >
						<ul class="nav pull-lift">
							<li>
								<a href="<%=base%>/mycrm/contacts/toNewContacts">添加联系人</a>
							</li>
							<li>
								<a href="#myModal" data-toggle="modal">新建任务</a>
								<div class="popover bottom">
									<div class="arrow"></div>
									<h3 class="popover-title">Popover bottom</h3>
									<div class="popover-content">
										<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
									</div>
								</div>
							</li>
						</ul>
					</span>
					<form id="search" class="navbar-search offset2">
						<input type="text" class="search-query" placeholder="Search" style="high:30px">
					</form>
					<ul class="nav pull-right">
						<li>
							<a href="">登陆</a>
						</li>
						<li>
							<a href="">退出</a>
						</li>
					</ul>
				</div>
			</div>	
		</div>	
	</div>
	<form id="myModal" class="modal hide fade form-horizontal" method="post" action="http://localhost" style="display:none"> 
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">新建任务</h3>
		</div>
		<div class="modal-body">
			<fieldset>  
			   <div class="control-group">  
				   <label class="control-label" for="username">任务内容:</label>  
				   <div class="controls">  
					   <input type="text" name="username"/>  
				   </div>  
			   </div>
			   <div class="control-group">  
				   <label class="control-label" for="password">联系人:</label>  
					<div class="controls">
						 <select>
							<option>电话</option>
							<option>邮件</option>
							<option>传真</option>
							<option>饭局</option>
							<option>会面</option>
							<option>纪念日</option>
							<option>其他</option>
						</select>
					</div>  
			   </div> 
			   <div class="control-group">  
				   <label class="control-label" for="password">类型:</label>  
				   <div class="controls">
						<select>
							<option>电话</option>
							<option>邮件</option>
							<option>传真</option>
							<option>饭局</option>
							<option>会面</option>
							<option>纪念日</option>
							<option>其他</option>
						</select>
				   </div>  
			   </div>  
				<div class="control-group">  
				   <label class="control-label" for="password">截止时间:</label>  
					<div class="controls">
						<input type="text" value="" onclick="setday(this)"/>  
					</div>  
			   </div> 	    
		   </fieldset>  
		</div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">退出</button>
			<button class="btn btn-primary">保存</button>
		</div>
    </form>
